<link rel="stylesheet" type="text/css" href="../css/frame2_dy.css?v=1.0.1" />
<div id="view" v-cloak>
    <ul class="m-dymanic">
        <li class="li" v-for="(item, index) in listData">
            <div class="left tx img-h">
                <img :src="imgurl+item.head" @load="imgCss(imgurl+item.head, $event)"
                    onerror="this.onerror=null;this.src='../image/touxiang.png'" alt="">
            </div>
            <div class="rt">
                <p style="    color: #545454;">
                    <span style="color:#1fb4f6">{{ item.name }}</span>用了{{ item.price }}<span
                        v-if="item.type ==1">解锁了你的相册</span><span v-if="item.type ==2">查看了你的一张红包照片</span>
                </p>
                <p style="    display: flex;justify-content: space-between;color:#ccc;margin-top: 15px;">
                    <span> </span>
                    <span>{{item.time}}</span>
                </p>
            </div>
        </li>
    </ul>
    <div id="no_more"></div>
</div>
<script type="text/javascript">
    var view = new Vue({
        el: '#view',
        data: {
            imgurl: imgurl,
            ffList: [],
            ffInfo: {},
        },
        methods: {
            _url: function (param, url) {
                _url(param, url);
            },
            // 图片自适应
            imgCss: function (url, event) {
                var e = event.currentTarget;
                imgCss(url, function (w, h) {
                    if (w < h) {
                        $(e).parent().addClass('img-w').removeClass('img-h');
                    }
                })
            },
        }
    })
    judgeLogin()
    var param = {
        user_id: myuserid,
    };
    _lists('home/User/imgsylist', 0, 1, param);

    _scrollToBottom(function () {
        if (heigutgao == 1) {
            pagenum++;
            _lists('home/User/imgsylist', pagenum, '', param);
        }
    })
</script>